package com.xiaoming.backend.result.exception;

public class BusinessException extends RuntimeException {
    public BusinessException(String message) {
        super(message);
        this.code = "400";
    }
    private final String code;

    public BusinessException(String code, String message) {
        super(message);
        this.code = code;
    }

    public String getCode() {
        return code;
    }
}
